<!DOCTYPE html><html lang="zh-Hans" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Activiti6.0获取下一节点任务的心路历程 | A.Dun</title><meta name="keywords" content="Java,Activiti"><meta name="author" content="A.Dun"><meta name="copyright" content="A.Dun"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="获取下一节点任务，这个看起来非常的简单，但在开发过程中遇到了许多的坑，在这里进行记录，这个任务看起来非常的简单，但在开发过程中遇到了许多的坑，在这里进行记录。">
<meta property="og:type" content="article">
<meta property="og:title" content="Activiti6.0获取下一节点任务的心路历程">
<meta property="og:url" content="http://zhudunfeng.github.io/2020/07/21/Activiti6.0%E8%8E%B7%E5%8F%96%E4%B8%8B%E4%B8%80%E8%8A%82%E7%82%B9%E4%BB%BB%E5%8A%A1%E7%9A%84%E5%BF%83%E8%B7%AF%E5%8E%86%E7%A8%8B/index.html">
<meta property="og:site_name" content="A.Dun">
<meta property="og:description" content="获取下一节点任务，这个看起来非常的简单，但在开发过程中遇到了许多的坑，在这里进行记录，这个任务看起来非常的简单，但在开发过程中遇到了许多的坑，在这里进行记录。">
<meta property="og:locale">
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg">
<meta property="article:published_time" content="2020-07-21T13:26:56.848Z">
<meta property="article:modified_time" content="2021-03-19T07:19:14.018Z">
<meta property="article:author" content="A.Dun">
<meta property="article:tag" content="Java">
<meta property="article:tag" content="Activiti">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="http://zhudunfeng.github.io/2020/07/21/Activiti6.0%E8%8E%B7%E5%8F%96%E4%B8%8B%E4%B8%80%E8%8A%82%E7%82%B9%E4%BB%BB%E5%8A%A1%E7%9A%84%E5%BF%83%E8%B7%AF%E5%8E%86%E7%A8%8B/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: undefined,
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: 'Copy successfully',
    error: 'Copy error',
    noSupport: 'The browser does not support'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '',
  date_suffix: {
    just: 'Just',
    min: 'minutes ago',
    hour: 'hours ago',
    day: 'days ago',
    month: 'months ago'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    jQuery: 'https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js',
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/js/jquery.justifiedGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/justifiedGallery/dist/css/justifiedGallery.min.css'
    },
    fancybox: {
      js: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js',
      css: 'https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isanchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Activiti6.0获取下一节点任务的心路历程',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: false,
  postUpdate: '2021-03-19 15:19:14'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    })(window)</script><meta name="generator" content="Hexo 5.4.0"><link rel="alternate" href="/atom.xml" title="A.Dun" type="application/atom+xml">
</head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="author-avatar"><img class="avatar-img" src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2558803942,3100807585&amp;fm=26&amp;gp=0.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="site-data"><div class="data-item is-center"><div class="data-item-link"><a href="/archives/"><div class="headline">Articles</div><div class="length-num">13</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/tags/"><div class="headline">Tags</div><div class="length-num">16</div></a></div></div><div class="data-item is-center"><div class="data-item-link"><a href="/categories/"><div class="headline">Categories</div><div class="length-num">7</div></a></div></div></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> List</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> Movie</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> About</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">A.Dun</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> Home</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> Archives</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> List</span><i class="fas fa-chevron-down expand"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/music/"><i class="fa-fw fas fa-music"></i><span> Music</span></a></li><li><a class="site-page child" href="/movies/"><i class="fa-fw fas fa-video"></i><span> Movie</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> Link</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> About</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Activiti6.0获取下一节点任务的心路历程</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">Created</span><time class="post-meta-date-created" datetime="2020-07-21T13:26:56.848Z" title="Created 2020-07-21 21:26:56">2020-07-21</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">Updated</span><time class="post-meta-date-updated" datetime="2021-03-19T07:19:14.018Z" title="Updated 2021-03-19 15:19:14">2021-03-19</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/%E6%B5%81%E7%A8%8B%E5%BC%95%E6%93%8E%E6%A1%86%E6%9E%B6/">流程引擎框架</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="Activiti6.0获取下一节点任务的心路历程"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">Post View:</span><span id="busuanzi_value_page_pv"></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><p>获取下一节点任务，这个看起来非常的简单，但在开发过程中遇到了许多的坑，在这里进行记录，这个任务看起来非常的简单，但在开发过程中遇到了许多的坑，在这里进行记录。</p>
<span id="more"></span>
<ol>
<li>首先，就是获取下一节点的任务信息，这里说简单也简单，说难也难，初期，我查阅了大量的资料，那些资料中都是在代码层面获取下一节点任务信息，我尝试了一下，非常的复杂，后来，我仔细研究了activiti流程变化与数据库变化之间的联系，发现act_ru_task表的执行特性，它会在当前节点任务完成后自动加载下一节点任务，根据这一点，我们就能能够获取到下一节点的相关信息。<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="undefined">     * <span class="doctag">@author</span> : ADun</span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined">     * 获取当前节点的下一节点所有节点信息</span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined">     * 解释：当当前节点任务完成后，ac_ru_task表会删除当前任务保存下一待办任务，因此可以获得下一节点任务相关信息</span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined">     * <span class="doctag">@param</span> task</span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">     * <span class="doctag">@return</span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">     */</span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    <span class="function"><span class="keyword">public</span> List&lt;Task&gt; <span class="title">nextAllNodeTaskList</span><span class="params">(Task task)</span> </span>&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        List&lt;Task&gt; taskList = <span class="keyword">null</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        taskList = taskService.createTaskQuery().processInstanceId(task.getProcessInstanceId()).list();</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="keyword">return</span> taskList;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br></pre></td></tr></table></figure></li>
<li>接着就是判断流程是怎样执行的了，何时给下一节点发信息，何时不发，在这里我由于对项目流程图不够熟悉，出现了各种的逻辑漏洞<br>（1）代码的第一个版本</li>
</ol>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="undefined">     * 发送待办提醒的通用入口（</span></span><br><span class="line"><span class="undefined">     * <span class="doctag">@param</span> task 当前节点的任务信息</span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined">     */</span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    <span class="meta">@Override</span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    <span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">sendTaskNotice</span><span class="params">(Task task)</span></span>&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="comment">//1、获取下一节点所有任务信息，实际是查询act_ru_task表中的信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        List&lt;Task&gt; nextNodeUserTask = taskQueryService.nextAllNodeTaskList(task);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="keyword">if</span>(nextNodeUserTask == <span class="keyword">null</span> || nextNodeUserTask.size() &lt;= <span class="number">0</span>)&#123;<span class="comment">//下一节点任务为空，即当前节点为最后一个节点</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="keyword">return</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">      <span class="keyword">for</span> (Task nextNodeTask : nextNodeUserTask) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            List&lt;Execution&gt; executionList = runtimeService.createExecutionQuery().processInstanceId(nextNodeTask.getProcessInstanceId()).list();<span class="comment">//查询出所有的执行实例</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; executionList.size(); i++) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="comment">//如果当前任务的执行实例id是下一节点任务执行实例的父id，则进行下一步</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="keyword">if</span>(task.getExecutionId() == executionList.get(i).getParentId())&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    String assignee = nextNodeTask.getAssignee();<span class="comment">//下一节点任务的参与者uid</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    <span class="keyword">if</span> (assignee == <span class="keyword">null</span> || <span class="string">&quot;&quot;</span>.equals(assignee))&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                        log.error(<span class="string">&quot;下一节点任务参与者为空&quot;</span>);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                        <span class="keyword">return</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    SysUser assigneeUser = sysUserService.selectUserByUserName(assignee);<span class="comment">//下一节点任务参与者用户信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    <span class="comment">//2、获取流程实例的任务属性</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    GatherTaskProperty gatherTaskProperty = gatherTaskPropertyMapper.selectGatherTaskPropertyByProcessInstanceId(task.getProcessInstanceId());</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    SysUser initialUser = sysUserService.selectUserByUserName(gatherTaskProperty.getCreateBy());<span class="comment">//发起人用户信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    <span class="comment">//3、发送邮件、短信提醒</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    sendTaskSMNotice(nextNodeTask, assigneeUser, initialUser);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    sendTaskMailNotice(nextNodeTask, assigneeUser, initialUser);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br></pre></td></tr></table></figure>

<p> 在这一个版本的代码逻辑中，我的的逻辑是这样的，这里使用到了activiti流程引擎在执行过程中的一个特性，如果流程是单线流程，那么在执行过程中只会在act_ru_exection执行实例表【这个表中会保存流程实例与执行实例，它们有细微的区别，不明白的可以去了解一下】中保存一条流程实例信息，如果是并行流程，那么在act_ru_exection表中会同时保存流程实例与执行实例，并且执行实例属于流程实例，在表中可以发现，这里包含三条信息，第一条就是流程实例的信息，下面两条是执行实例的信息<br><img src="https://img-blog.csdnimg.cn/20200715154900416.jpg#pic_center" alt="在这里插入图片描述"><br>由此我们也能够得出此时是一个下图这种类型的流程图<br><img src="https://img-blog.csdnimg.cn/20200715155804977.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxODE2NzAy,size_16,color_FFFFFF,t_70#pic_center" alt="在这里插入图片描述"><br>当初是这样想的，现在看起来非常的智障：：当1号节点任务完成时，act_ru_task表会自动加载2与4任务节点的信息【并行网关的特性】，此时的2与3属于一个执行实例，4与5属于一个执行实例，当任务2完成时，act_ru_task表会自动删除2号节点，加载3号任务，此时3号执行实例的parentid我认为是2号节点的执行id，但后来发现，act_ru_exection表中一直会保存三条数据，变化的只是act_id，第一版本宣布失败<br>（2）代码的第二个版本</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="undefined">     * 发送待办提醒的通用入口（包含短信+邮箱提醒）</span></span><br><span class="line"><span class="undefined">     * <span class="doctag">@param</span> task 当前节点的任务信息</span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined">     */</span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    <span class="meta">@Override</span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    <span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">sendTaskNotice</span><span class="params">(Task task)</span></span>&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="comment">//1、获取下一节点所有任务信息，实际是查询act_ru_task表中的信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        List&lt;Task&gt; nextNodeUserTask = taskQueryService.nextAllNodeTaskList(task);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="keyword">if</span>(nextNodeUserTask == <span class="keyword">null</span> || nextNodeUserTask.size() &lt;= <span class="number">0</span>)&#123;<span class="comment">//下一节点任务为空，即当前节点为最后一个节点</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="keyword">return</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="comment">//2、如果下一节点只有一个任务，act_ru_task中只有一条数据</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="keyword">if</span> (nextNodeUserTask.size() == <span class="number">1</span>) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            String assignee =<span class="keyword">null</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="comment">//判断是单线流程还是并行流程，根据当前任务的执行流程实例id查询act_ru_exection，只有一条数据说明是单线流程，否则时多线</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            List&lt;Execution&gt; executionList = runtimeService.createExecutionQuery().processInstanceId(nextNodeUserTask.get(<span class="number">0</span>).getProcessInstanceId()).list();</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="keyword">if</span>(executionList.size()==<span class="number">1</span>)&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="comment">//单线流程，直接向下一节点任务负责人发送信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                assignee = nextNodeUserTask.get(<span class="number">0</span>).getAssignee();<span class="comment">//下一节点任务的参与者uid</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="keyword">if</span> (assignee == <span class="keyword">null</span> || <span class="string">&quot;&quot;</span>.equals(assignee))&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    log.error(<span class="string">&quot;下一节点任务参与者为空&quot;</span>);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    <span class="keyword">return</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                SysUser assigneeUser = sysUserService.selectUserByUserName(assignee);<span class="comment">//下一节点任务参与者用户信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="comment">//2、获取流程实例的任务属性</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                GatherTaskProperty gatherTaskProperty = gatherTaskPropertyMapper.selectGatherTaskPropertyByProcessInstanceId(task.getProcessInstanceId());</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                SysUser initialUser = sysUserService.selectUserByUserName(gatherTaskProperty.getCreateBy());<span class="comment">//发起人用户信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="comment">//3、发送邮件、短信提醒</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                sendTaskSMNotice(nextNodeUserTask.get(<span class="number">0</span>), assigneeUser, initialUser);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                sendTaskMailNotice(nextNodeUserTask.get(<span class="number">0</span>), assigneeUser, initialUser);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                sendTask(task,nextNodeUserTask.get(<span class="number">0</span>));</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            &#125;<span class="keyword">else</span>&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="comment">//多线流程，只有一条执行实例完成时有可能出现一个任务节点，此时跳过</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="keyword">return</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="comment">//3、如果下一节点任务不只一个任务，act_ru_task中有多条数据</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        Set&lt;Task&gt; taskArraySet = <span class="keyword">new</span> HashSet&lt;&gt;();<span class="comment">//去重</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="keyword">if</span> (nextNodeUserTask.size() &gt; <span class="number">1</span>) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; nextNodeUserTask.size() - <span class="number">1</span>; i++) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                Date timeOne = nextNodeUserTask.get(i).getCreateTime();</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                Date timeTwo = nextNodeUserTask.get(i + <span class="number">1</span>).getCreateTime();</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="keyword">if</span> (timeOne.compareTo(timeTwo) == <span class="number">0</span>) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    <span class="comment">//如果当前任务的创建时间相同，都发送</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    taskArraySet.add(nextNodeUserTask.get(i));</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    taskArraySet.add(nextNodeUserTask.get(i + <span class="number">1</span>));</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                &#125; <span class="keyword">else</span> <span class="keyword">if</span> (timeOne.compareTo(timeTwo) &gt; <span class="number">0</span>) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    <span class="comment">//如果当前任务的创建时间不同，timeOne在timeTwo时间之后</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    taskArraySet.add(nextNodeUserTask.get(i));<span class="comment">//只发送最近时间创建的任务</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                &#125; <span class="keyword">else</span> &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    <span class="comment">//如果当前任务的创建时间不同，timeOne在timeTwo时间之前</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                    taskArraySet.add(nextNodeUserTask.get(i + <span class="number">1</span>));<span class="comment">//只发送最近时间创建的任务</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="keyword">for</span> (Task nextNodeTask : taskArraySet) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            sendTask(task, nextNodeTask) ;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br></pre></td></tr></table></figure>
<p>在这一个版本的代码，我加入了大量的判断，在后期发现这里的逻辑只能适用于两条并行的流程，三条并行会有重复发送的情况，而且在单线流程与并行流程的判断处有逻辑错误，不适合下图流程<br><img src="https://img-blog.csdnimg.cn/20200715162124328.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxODE2NzAy,size_16,color_FFFFFF,t_70#pic_center" alt="在这里插入图片描述"><br>在2、3、4任务完成后不会向5发送信息，这是严重的逻辑性错误</p>
<p>（3）代码的最终版本</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">/**</span></span><br><span class="line"><span class="undefined">     * <span class="doctag">@param</span> task 当前节点的任务信息</span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined">     * <span class="doctag">@author</span> : ADun</span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">     * 发送待办提醒的通用入口</span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">     */</span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    <span class="function"><span class="keyword">public</span> <span class="keyword">void</span> <span class="title">sendTaskNotice</span><span class="params">(Task task)</span> </span>&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="comment">//1、获取下一节点所有任务信息，实际是查询act_ru_task表中的信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        List&lt;Task&gt; nextNodeUserTask = taskQueryService.nextAllNodeTaskList(task);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="comment">//下一节点任务为空，即当前节点为最后一个节点</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="keyword">if</span> (nextNodeUserTask == <span class="keyword">null</span> || nextNodeUserTask.size() &lt;= <span class="number">0</span>) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="keyword">return</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        <span class="keyword">for</span> (Task nextNodeTask : nextNodeUserTask) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            String assignee = nextNodeTask.getAssignee();</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="keyword">if</span>(assignee == <span class="keyword">null</span> || <span class="string">&quot;&quot;</span>.equals(assignee))&#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                log.error(<span class="string">&quot;taskId为&quot;</span> + nextNodeTask.getId() + <span class="string">&quot;的任务参与者不存在！&quot;</span>);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                <span class="keyword">continue</span>;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="comment">//获取当前任务的结束时间</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            HistoricTaskInstance hisTask = historyService.createHistoricTaskInstanceQuery().taskId(task.getId()).singleResult();</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            Date hisTaskEndTime = hisTask.getEndTime();</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="comment">//获取下一任务开始时间</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            Date nextNodeTaskCreateTime = nextNodeTask.getCreateTime();</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="comment">//只有下一任务节点创建时间与当前任务完成时间相等时，向下一节点发送信息</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            <span class="keyword">if</span> (nextNodeTaskCreateTime.compareTo(hisTaskEndTime) == <span class="number">0</span>) &#123;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">                sendTask(task, nextNodeTask);</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">            &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">        &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined">    &#125;</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br><span class="line"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"><span class="undefined"></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><br></pre></td></tr></table></figure>
<p>在这一版本中我还是沿用上一版本代码的思想，在时间中做文章，这个思想适用于网络延时非常小，几乎不计，最后我是通过判断当前任务的完成时间是否下一任务的开始时间相同，相同就向下一任务审批人发送信息，我认为这里还是存在漏洞，可能时间会存在秒级的不准确，大家有什么好的想法可以在评论区留言。</p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">Author: </span><span class="post-copyright-info"><a href="mailto:undefined">A.Dun</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">Link: </span><span class="post-copyright-info"><a href="http://zhudunfeng.github.io/2020/07/21/Activiti6.0%E8%8E%B7%E5%8F%96%E4%B8%8B%E4%B8%80%E8%8A%82%E7%82%B9%E4%BB%BB%E5%8A%A1%E7%9A%84%E5%BF%83%E8%B7%AF%E5%8E%86%E7%A8%8B/">http://zhudunfeng.github.io/2020/07/21/Activiti6.0%E8%8E%B7%E5%8F%96%E4%B8%8B%E4%B8%80%E8%8A%82%E7%82%B9%E4%BB%BB%E5%8A%A1%E7%9A%84%E5%BF%83%E8%B7%AF%E5%8E%86%E7%A8%8B/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">Copyright Notice: </span><span class="post-copyright-info">All articles in this blog are licensed under <a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> unless stating additionally.</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/Java/">Java</a><a class="post-meta__tags" href="/tags/Activiti/">Activiti</a></div><div class="post_share"><div class="social-share" data-image="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/social-share.js/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/social-share.js/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2020/07/23/%E5%9C%A8SpringBoot%E9%A1%B9%E7%9B%AE%E4%B8%AD%E6%80%8E%E6%A0%B7%E5%BC%95%E5%85%A5.yml%E6%96%87%E4%BB%B6%E4%B8%AD%E7%9A%84%E8%AE%BE%E7%BD%AE/"><img class="prev-cover" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">Previous Post</div><div class="prev_info">在SpringBoot项目中引入.yml文件中的设置</div></div></a></div><div class="next-post pull-right"><a href="/2020/07/21/My/"><img class="next-cover" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">Next Post</div><div class="next_info">My</div></div></a></div></nav><div class="relatedPosts"><div class="headline"><i class="fas fa-thumbs-up fa-fw"></i><span> Related Articles</span></div><div class="relatedPosts-list"><div><a href="/2020/08/20/Acticiti流程引擎在已知当前流程定义id的情况下获取当前流程的所有信息（包括：节点和连线）/" title="Acticiti流程引擎在已知当前流程定义id的情况下获取当前流程的所有信息（包括：节点和连线）"><img class="cover" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2020-08-20</div><div class="title">Acticiti流程引擎在已知当前流程定义id的情况下获取当前流程的所有信息（包括：节点和连线）</div></div></a></div><div><a href="/2020/10/19/Activiti的流程实例【ProcessInstance】与执行实例【Execution】/" title="Activiti的流程实例【ProcessInstance】与执行实例【Execution】"><img class="cover" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2020-10-19</div><div class="title">Activiti的流程实例【ProcessInstance】与执行实例【Execution】</div></div></a></div><div><a href="/2020/08/22/Docker学习：（一）初识Docker/" title="Docker学习：（一）初识Docker"><img class="cover" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2020-08-22</div><div class="title">Docker学习：（一）初识Docker</div></div></a></div><div><a href="/2020/09/01/GC调优-XX_PrintGCDetails深度解析/" title="GC调优-XX:PrintGCDetails深度解析"><img class="cover" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2020-09-01</div><div class="title">GC调优-XX:PrintGCDetails深度解析</div></div></a></div><div><a href="/2020/08/20/Java死锁编码及定位分析的demo/" title="Java死锁编码及定位分析的demo"><img class="cover" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2020-08-20</div><div class="title">Java死锁编码及定位分析的demo</div></div></a></div><div><a href="/2020/07/24/SpringBoot使用activiti自定义流程demo解析/" title="SpringBoot使用activiti自定义流程demo解析"><img class="cover" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" alt="cover"><div class="content is-center"><div class="date"><i class="far fa-calendar-alt fa-fw"></i> 2020-07-24</div><div class="title">SpringBoot使用activiti自定义流程demo解析</div></div></a></div></div></div></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="card-info-avatar is-center"><img class="avatar-img" src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2558803942,3100807585&amp;fm=26&amp;gp=0.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/><div class="author-info__name">A.Dun</div><div class="author-info__description">阿敦成长日记</div></div><div class="card-info-data"><div class="card-info-data-item is-center"><a href="/archives/"><div class="headline">Articles</div><div class="length-num">13</div></a></div><div class="card-info-data-item is-center"><a href="/tags/"><div class="headline">Tags</div><div class="length-num">16</div></a></div><div class="card-info-data-item is-center"><a href="/categories/"><div class="headline">Categories</div><div class="length-num">7</div></a></div></div><a class="button--animated" id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/xxxxxx"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn card-announcement-animation"></i><span>Announcement</span></div><div class="announcement_content">This is my Blog</div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>Recent Post</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2020/10/19/Activiti%E7%9A%84%E6%B5%81%E7%A8%8B%E5%AE%9E%E4%BE%8B%E3%80%90ProcessInstance%E3%80%91%E4%B8%8E%E6%89%A7%E8%A1%8C%E5%AE%9E%E4%BE%8B%E3%80%90Execution%E3%80%91/" title="Activiti的流程实例【ProcessInstance】与执行实例【Execution】"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Activiti的流程实例【ProcessInstance】与执行实例【Execution】"/></a><div class="content"><a class="title" href="/2020/10/19/Activiti%E7%9A%84%E6%B5%81%E7%A8%8B%E5%AE%9E%E4%BE%8B%E3%80%90ProcessInstance%E3%80%91%E4%B8%8E%E6%89%A7%E8%A1%8C%E5%AE%9E%E4%BE%8B%E3%80%90Execution%E3%80%91/" title="Activiti的流程实例【ProcessInstance】与执行实例【Execution】">Activiti的流程实例【ProcessInstance】与执行实例【Execution】</a><time datetime="2020-10-19T14:17:32.151Z" title="Created 2020-10-19 22:17:32">2020-10-19</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2020/10/13/JavaSE%208%E9%9D%A2%E8%AF%95%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E5%AE%9D%E5%85%B8%E3%80%90%E4%B8%BB%E8%A6%81%E4%BB%A5%E9%97%AE%E9%A2%98%E7%9A%84%E5%BD%A2%E5%BC%8F%E8%AE%B0%E5%BD%95%E3%80%91/" title="JavaSE 8面试基础知识宝典【主要以问题的形式记录】"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="JavaSE 8面试基础知识宝典【主要以问题的形式记录】"/></a><div class="content"><a class="title" href="/2020/10/13/JavaSE%208%E9%9D%A2%E8%AF%95%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86%E5%AE%9D%E5%85%B8%E3%80%90%E4%B8%BB%E8%A6%81%E4%BB%A5%E9%97%AE%E9%A2%98%E7%9A%84%E5%BD%A2%E5%BC%8F%E8%AE%B0%E5%BD%95%E3%80%91/" title="JavaSE 8面试基础知识宝典【主要以问题的形式记录】">JavaSE 8面试基础知识宝典【主要以问题的形式记录】</a><time datetime="2020-10-13T15:03:01.662Z" title="Created 2020-10-13 23:03:01">2020-10-13</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2020/09/30/%E8%A7%A3%E6%9E%90Json%EF%BC%8C%E5%B0%81%E8%A3%85JavaBean%E5%AF%B9%E8%B1%A1/" title="FastJson解析Json，封装JavaBean对象"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="FastJson解析Json，封装JavaBean对象"/></a><div class="content"><a class="title" href="/2020/09/30/%E8%A7%A3%E6%9E%90Json%EF%BC%8C%E5%B0%81%E8%A3%85JavaBean%E5%AF%B9%E8%B1%A1/" title="FastJson解析Json，封装JavaBean对象">FastJson解析Json，封装JavaBean对象</a><time datetime="2020-09-30T09:35:49.259Z" title="Created 2020-09-30 17:35:49">2020-09-30</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2020/09/01/GC%E8%B0%83%E4%BC%98-XX_PrintGCDetails%E6%B7%B1%E5%BA%A6%E8%A7%A3%E6%9E%90/" title="GC调优-XX:PrintGCDetails深度解析"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="GC调优-XX:PrintGCDetails深度解析"/></a><div class="content"><a class="title" href="/2020/09/01/GC%E8%B0%83%E4%BC%98-XX_PrintGCDetails%E6%B7%B1%E5%BA%A6%E8%A7%A3%E6%9E%90/" title="GC调优-XX:PrintGCDetails深度解析">GC调优-XX:PrintGCDetails深度解析</a><time datetime="2020-09-01T14:40:04.874Z" title="Created 2020-09-01 22:40:04">2020-09-01</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2020/08/22/Docker%E5%AD%A6%E4%B9%A0%EF%BC%9A%EF%BC%88%E4%B8%80%EF%BC%89%E5%88%9D%E8%AF%86Docker/" title="Docker学习：（一）初识Docker"><img src="https://cdn.jsdelivr.net/npm/butterfly-extsrc@1/img/default.jpg" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Docker学习：（一）初识Docker"/></a><div class="content"><a class="title" href="/2020/08/22/Docker%E5%AD%A6%E4%B9%A0%EF%BC%9A%EF%BC%88%E4%B8%80%EF%BC%89%E5%88%9D%E8%AF%86Docker/" title="Docker学习：（一）初识Docker">Docker学习：（一）初识Docker</a><time datetime="2020-08-22T09:25:30.437Z" title="Created 2020-08-22 17:25:30">2020-08-22</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2020 - 2021 By A.Dun</div><div class="framework-info"><span>Framework </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>Theme </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="Read Mode"><i class="fas fa-book-open"></i></button><button id="darkmode" type="button" title="Toggle Between Light And Dark Mode"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="Toggle between single-column and double-column"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="Setting"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="Back To Top"><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginRootPath":"live2dw/","pluginJsPath":"lib/","pluginModelPath":"assets/","tagMode":false,"model":{"jsonPath":"/live2dw/assets/chitose.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":false},"log":false});</script></body></html>